package com.meilai.project.constant;

public enum BossUserEnum {
    DIAO_AN_YUAN(2L, "刁安员"),
    WANG_YAN_HUI(5L, "王艳慧"),
    GONG_SI(23L, "公司");

    private Long id;
    private String name;


    BossUserEnum(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public static BossUserEnum getEnumById(Long id) {
        for (BossUserEnum boosUserEnum : BossUserEnum.values()) {
            if (boosUserEnum.getId().equals(id)) {
                return boosUserEnum;
            }
        }
        return null;
    }

    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }
}
